$(function() {
	const warpper = $('#preview');
	warpper.on('click', 'img', function() {
		// const index = $(this).index();
		const urls = [];
		warpper.find('img').each(function(index, item) {
			urls.push(item.src);
		});

		xin.preview({
			urls: urls,
			current: this.src
		});
	})
});
